import {defineStore} from "pinia";
import {InterfaceInfo} from "@/model/interfaceInfo";
import {store} from "@/store";

export const useInterfaceInfoStore = defineStore({
  id: "xz-interfaceInfo",
  state: (): { interfaceInfo: InterfaceInfo | null} => ({
    // 用户
    interfaceInfo : null
  }),
  actions: {
    saveInterfaceInfo(interfaceInfo : InterfaceInfo){
      this.interfaceInfo = interfaceInfo;
    },
  }
});

export function useInterfaceInfoStoreHook() {
  return useInterfaceInfoStore(store);
}
